package cn.zn.modules.loan.old.service.impl;

import cn.zn.framework.common.utils.PageUtils;
import cn.zn.modules.loan.old.dao.TLoanInfoDao;
import cn.zn.modules.loan.old.entity.TLoanInfoEntity;
import cn.zn.modules.loan.old.service.TLoanInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service("tLoanInfoService")
public class TLoanInfoServiceImpl extends ServiceImpl<TLoanInfoDao, TLoanInfoEntity> implements TLoanInfoService {

    @Override
    public PageUtils queryPage(TLoanInfoEntity tLoanInfo, IPage<TLoanInfoEntity> page) {

        QueryWrapper<TLoanInfoEntity> tLoanInfoQueryWrapper = Wrappers.query();

        IPage<TLoanInfoEntity> pageResult = this.page(page, tLoanInfoQueryWrapper);
        return new PageUtils(pageResult);
    }

}